package com.wangsd.web.face.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import java.util.Date;

/**
 * 小微商户进件
 */
@Data
@Entity
@Table(name = "cert_ficates_base")
@ApiModel(value = "小微商户进件", description = "小微商户进件")
public class CertFicatesBase {
    @Id
    @TableId(type = IdType.AUTO)
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private Date createdTime;

    @ApiModelProperty(value = "序列号")
    private String serialNo;

    private String nonce;

    private String associatedData;

    @Column(name = "cipher_text",columnDefinition = "varchar(4000) default '' not null")
    private String cipherText;

    private String apiv3Key;

    private String mchId;

    private String apiSecret;

    private String certPath;

    @ApiModelProperty(value = "电话号码")
    private String concatPhone;
}
